let next_time = new Date(2021 + '-' + 3 + '-' + 16 + '-' + 21 + ':' + 00 + ':' + 00)
console.log(next_time);
let div1 = document.querySelector('.div1')
let div2 = document.querySelector('.div2')
let div3 = document.querySelector('.div3')
let jishi = document.querySelector('.jishi')
console.log(jishi);
let timer = setInterval(() => {
    let now_time = new Date()
    console.log(now_time);
    let shijiancha = next_time - now_time
    console.log(shijiancha);
    let h = parseInt(shijiancha / 1000 / 60 / 60) % 60
    if (h < 10) {
        h = '0' + h
    }
    div1.innerHTML = h + ':'
    let m = parseInt(shijiancha / 1000 / 60) % 60
    if (m < 10) {
        m = '0' + m
    }
    div2.innerHTML = m + ':'
    let s = parseInt(shijiancha / 1000) % 60
    if (s < 10) {
        s = '0' + s
    }
    div3.innerHTML = s
    if (shijiancha <= 0) {
        jishi.innerHTML = '开始抢吧！'
        clearInterval(timer)
    }
}, 1000)